package com.shaodongbo.webviewandandroid;

import android.content.Context;
import android.util.Log;
import android.webkit.JavascriptInterface;
import android.widget.Toast;

public class JStoAndroid {
    private Context context;

    public JStoAndroid(Context context){
        this.context = context;
    }

    @JavascriptInterface
    public void hello(String string){
        Log.e("JStoAndroid", "hello " + string);
        Toast.makeText(context, "hell " + string, Toast.LENGTH_SHORT).show();
    }
}
